package com.gt

import com.gt.util.MyRedisUtils
import redis.clients.jedis.Jedis

object Test {

  def main(args: Array[String]): Unit = {

    val jedis: Jedis = MyRedisUtils.getJedisFromPool()
    //jedis.set("k-a","k-v")
    val key = "offsets:ODS_BASE_LOG:OdsBaseLogApp2_001"
    val str= jedis.hgetAll(key)
    val str1: String = jedis.hget(key, "0")
    jedis.close()
    println(str1)
  }

}
